package com.gemini.custom;

import com.gemini.play.MGplayer;
import java.util.Calendar;
import java.util.Date;

public class newlive {

    class AnonymousClass1 extends Thread {

    }

    public static void http_send() {
        if (MGplayer.custom().equals("newlive")) {
            Calendar calendar = Calendar.getInstance();
            if (MGplayer.seconds_prc > 0) {
                calendar.setTime(new Date(MGplayer.seconds_prc));
            }
            int year = calendar.get(1);
            int month = calendar.get(2) + 1;
            int day = calendar.get(5);
            int hour = calendar.get(11);
            int minute = calendar.get(12);
            int second = calendar.get(13);
            //new AnonymousClass1(MGplayer.j1(new StringBuilder(String.valueOf(MGplayer.tv.getCpuID())).append("$").append(MGplayer.tv.GetMac()).append("$").append(new StringBuilder(String.valueOf(year)).append("gemini").append(String.format("%02d", new Object[]{Integer.valueOf(month)})).append("gemini").append(String.format("%02d", new Object[]{Integer.valueOf(day)})).append("gemini").append(String.format("%02d", new Object[]{Integer.valueOf(hour)})).append("gemini").append(String.format("%02d", new Object[]{Integer.valueOf(minute)})).append("gemini").append(String.format("%02d", new Object[]{Integer.valueOf(second)})).toString()).toString())).start();
            
            new Thread(new Runnable(){
                private /*final  synthetic */ String val$cmd;

                public Runnable init(String str) {
                    this.val$cmd = str;
                    
                    return this;
                }

                public void run() {
                    MGplayer.sendServerCmd(new StringBuilder(String.valueOf(MGplayer.tv.gete())).append("/firewall.php?cmd=").append(this.val$cmd).toString());
                }            	
            }.init(MGplayer.j1(new StringBuilder(String.valueOf(MGplayer.tv.getCpuID())).append("$").append(MGplayer.tv.GetMac()).append("$").append(new StringBuilder(String.valueOf(year)).append("gemini").append(String.format("%02d", new Object[]{Integer.valueOf(month)})).append("gemini").append(String.format("%02d", new Object[]{Integer.valueOf(day)})).append("gemini").append(String.format("%02d", new Object[]{Integer.valueOf(hour)})).append("gemini").append(String.format("%02d", new Object[]{Integer.valueOf(minute)})).append("gemini").append(String.format("%02d", new Object[]{Integer.valueOf(second)})).toString()).toString()))).start();
        }
    }
}
